import Layout from '@/layout'
// 组织架构，动态路由，根据用户权限不一样不同的显示
const departmentsRouter = {
  path: '/departments',
  component: Layout,
  children: [
    {
      name: 'departments',
      path: '', // 二级路由为空，作为默认渲染路由
      component: () => import ('@/views/departments/index'),
      meta: { title: '组织架构', icon: 'tree' }
    }
  ]
}

export default departmentsRouter
